#include <stdio.h>

int main()
{
    // 获取不同类型变量的大小
    size_t sizeOfInt = sizeof(int);
    size_t sizeOfDouble = sizeof(double);
    size_t sizeOfPointer = sizeof(int *);

    // 输出变量的大小
    printf("Size of int: %zu bytes\n", sizeOfInt);
    printf("Size of double: %zu bytes\n", sizeOfDouble);
    printf("Size of int*: %zu bytes\n", sizeOfPointer);

    printf("%zu\n", sizeof(1));
    printf("%zu\n", sizeof(1.0));

    return 0;
}